import axios from './http'
import qs from 'qs'
import base from './base'
const me = {
  wallet (params) {
    return axios.get(`${base.pro}/api/member/mywallet`, {
      params
    })
  },
  // 提现
  cash (params) {
    return axios.get(`${base.pro}/api/member/cash`, { params })
  },
  withdraw (params) {
    return axios.post(`${base.pro}/api/member/withdraw`, qs.stringify(params))
  },
  // 银行卡
  card (params) {
    return axios.post(`${base.pro}/api/member/bindBank`, qs.stringify(params))
  },
  // 明细
  particulars (params) {
    return axios.get(`${base.pro}/api/member/walletFlow`, {
      params
    })
  },
  // 关于我们
  about (params) {
    return axios.get(`${base.pro}/api/helper/lists`, {
      params
    })
  },
  aboutDetail (params) {
    return axios.get(`${base.pro}/api/helper/detail`, {
      params
    })
  },
  // 问题反馈
  feedback (params) {
    return axios.post(`${base.pro}/api/profile/feedback`, qs.stringify(params))
  }
}

export default me
